-
Notifications
You must be signed in to change notification settings - Fork 0
esaas mc converter #86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| base_content = section.get('content-file', '') | ||
| write_file(content_file, f'{base_content}\n') | ||
| section['content-file'] = str(str(relative_path).replace("\\", "/")) | ||
| return section |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
try not to return it
| flags=re.MULTILINE) | ||
| if match_settings_item: | ||
| settings[match_settings_item.group('key')] = match_settings_item.group('value') | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
large nesting, try to simplify
| match_tag = re.search(r"topic:(?P<tag_value>.*?)'$", tag) | ||
| if match_tag: | ||
| tag = match_tag.group('tag_value') | ||
| tags.append({'name': 'topic', 'value': tag}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
large nesting, try to simplify
| guidance.append(match_guidance.group('explanation')) | ||
|
|
||
| if option_type == 'group': | ||
| continue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might try match-case or dictionary
| relative_path = content_file.relative_to(output_dir) | ||
| base_content = section.get('content-file', '') | ||
| write_file(content_file, f'{base_content}\n') | ||
| section['content-file'] = str(str(relative_path).replace("\\", "/")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did not understand why srt (str
https://codio.myjetbrains.com/youtrack/issue/codio-12886